#include "aboutdialog.h"
#include "ui_aboutdialog.h"

aboutdialog::aboutdialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::aboutdialog)
{
    ui->setupUi(this);

    // 去掉窗口标题栏
    this->setWindowFlag(Qt::FramelessWindowHint);

    // 禁止窗口改变尺寸大小
    this->setFixedSize(this->width(),this->height());
}


aboutdialog::~aboutdialog()
{
    delete ui;
}

void aboutdialog::paintEvent(QPaintEvent *event)
{
    (void)* event;
    QPainter painter(this);
    //更改背景图片
    painter.drawPixmap(0,0,width(),height(),QPixmap(":/new/prefix1/images/Dialog_Background.jpg"));
}

